package com.accelstack.cmp.repository;

import com.accelstack.cmp.entity.WarrantyInfo;
import com.accelstack.cmp.enums.AssetType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 保修信息Repository
 */
@Repository
public interface WarrantyInfoRepository extends JpaRepository<WarrantyInfo, Long> {
    
    /**
     * 根据资产类型和资产ID查询保修信息
     */
    List<WarrantyInfo> findByAssetTypeAndAssetId(AssetType assetType, Long assetId);
}

